//#define __DEBUG__
// by Xeno
#define THIS_FILE "fn_createtrigger.sqf"
#include "x_setup.sqf"

private ["_pos", "_trigarea", "_trigact", "_trigstatem", "_trigger"];
PARAMS_4(_pos,_trigarea,_trigact,_trigstatem);
_trigger = createTrigger ["EmptyDetector" ,_pos];
_trigger setTriggerArea _trigarea;
_trigger setTriggerActivation _trigact;
_trigger setTriggerStatements _trigstatem;
_trigger